package com.wanshi.feign;

import com.wanshi.entity.AdminUser;
import org.springframework.stereotype.Component;

/**
 * @Author: wb
 * @CreateTime: 2023-03-30  14:43
 * @Description:
 */
@Component  // 将实现对象 注入到spring中
public class FeignCallback implements UserFeign{

    // 虚假的参数,让我继续往下进行
    @Override
    public AdminUser getadmin(String admin_id) {
        AdminUser adminUser = new AdminUser();
        adminUser.setAdmin_id(-1);
        adminUser.setNickname("出错了");
        return adminUser;
    }

    @Override
    public String getUser(String admin_id) {
        return "出错了"+admin_id;
    }
}
